﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Xml;

public partial class Pages_TestTemplate : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
         string fname = "http://localhost:6535/Web/upload/xml/video.xml";
         
             XmlDocument doc = new XmlDocument();
             doc.Load(fname);
             XmlNode root = doc.DocumentElement;
             XmlNodeList list = root.ChildNodes;
             //txtVideoName.Text = list.Item(0).InnerText;
             string link = list.Item(1).InnerText;
             string video_id = link.Substring(link.IndexOf("watch?v="), 19).Replace("watch?v=","");
             
         
    }
}